package ycl.base.req;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import ycl.common.models.req.BaseReq;

import javax.validation.constraints.NotBlank;

/**
 * 国家表请求体请求体
 *
 * @author ycl
 * @date 2022/6/27 0027 0:01:03
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ApiModel("国家表请求体请求体")
public class CountryReq extends BaseReq {

	@Schema(description = "国家名字")
	@NotBlank(message = "请输入国家")
	private String name;

	@Schema(description = "国家代码")
	@NotBlank(message = "请输入国家代码")
	private String code;

	@Schema(description = "英文缩写")
	private String nameEn;

	@Schema(description = "中文名")
	private String namePinyin;
}
